//package com.raycloud.erp.omll.provider.dubbo;
//
//import com.raycloud.erp.mulplatforms.domain.Auth2CheckReqDto;
//import com.raycloud.erp.mulplatforms.domain.AuthCheckReqDto;
//import com.raycloud.erp.mulplatforms.domain.ShopReqDto;
//import com.raycloud.erp.mulplatforms.domain.ShopResDto;
//import com.raycloud.erp.mulplatforms.openapi.basis.api.UnifyPlatformBasisService;
//import com.raycloud.erp.omll.provider.model.bo.MulPlatformUserBO;
//import com.raycloud.erp.omll.provider.service.PlatformBasisService;
//import org.apache.dubbo.config.annotation.DubboService;
//import org.springframework.beans.BeanUtils;
//
//import javax.annotation.Resource;
//import java.util.Date;
//
//@DubboService(interfaceClass = UnifyPlatformBasisService.class, version = "1.0", tag = "yangcong")
//public class OmllPlatformBasisServiceDubbo implements UnifyPlatformBasisService {
//    @Resource
//    private PlatformBasisService platformBasisService;
//
//    /**
//     * dubbo服务每个渠道都是一个单独的服务,认证,订单,商品,物流等业务逻辑自己实现并且落入自己的数据库中
//     */
//    @Override
//    public Boolean refreshToken(ShopReqDto shopReqDto) {
//        return null;
//    }
//
//    @Override
//    public Boolean authCheck(AuthCheckReqDto authCheckReqDto) {
//        MulPlatformUserBO mulPlatformUserBO = new MulPlatformUserBO();
//        BeanUtils.copyProperties(authCheckReqDto, mulPlatformUserBO);
//        return platformBasisService.authCheck(mulPlatformUserBO);
//    }
//
//    @Override
//    public Boolean auth2Check(Auth2CheckReqDto authCheckReqDto) {
//        return null;
//    }
//
//    @Override
//    public Date getDeadline(ShopReqDto shopReqDto) {
//        MulPlatformUserBO mulPlatformUserBO = new MulPlatformUserBO();
//        BeanUtils.copyProperties(shopReqDto, mulPlatformUserBO);
//        return platformBasisService.getDeadline(mulPlatformUserBO);
//    }
//
//    @Override
//    public ShopResDto getShopInfo(ShopReqDto shopReqDto) {
//        MulPlatformUserBO mulPlatformUserBO = new MulPlatformUserBO();
//        BeanUtils.copyProperties(shopReqDto, mulPlatformUserBO);
//        ShopResDto shopResDto = new ShopResDto();
//        BeanUtils.copyProperties(platformBasisService.getShopInfo(mulPlatformUserBO), shopResDto);
//        return shopResDto;
//    }
//
//    /**
//     * @param shopReqDto
//     * @return
//     * @description 店铺注册及更新
//     */
//    @Override
//    public Boolean registerOrUpdateShop(ShopReqDto shopReqDto) {
//        MulPlatformUserBO mulPlatformUserBO = new MulPlatformUserBO();
////        mulPlatformUserBO.setSource(shopReqDto.getSource());
////        mulPlatformUserBO.setCompanyId(shopReqDto.getCompanyId());
////        mulPlatformUserBO.setUserId(shopReqDto.getUserId());
////        mulPlatformUserBO.setName(shopReqDto.getName());
////        mulPlatformUserBO.setShortName(shopReqDto.getShortName());
////        mulPlatformUserBO.setRemark(shopReqDto.getRemark());
////        mulPlatformUserBO.setAuthFieldList(shopReqDto.getAuthFieldList());
////        mulPlatformUserBO.setId(shopReqDto.getId());
////        mulPlatformUserBO.setOperateTypeEnum(shopReqDto.getOperateTypeEnum());
//        BeanUtils.copyProperties(shopReqDto, mulPlatformUserBO);
//        return platformBasisService.registerOrUpdateShop(mulPlatformUserBO);
//    }
//
//    /**
//     * @param shopReqDto
//     * @return
//     * @description 操作店铺：启用、停用、删除
//     */
//    @Override
//    public Boolean operateShop(ShopReqDto shopReqDto) {
//        MulPlatformUserBO mulPlatformUserBO = new MulPlatformUserBO();
//        BeanUtils.copyProperties(shopReqDto, mulPlatformUserBO);
//        return platformBasisService.operateShop(mulPlatformUserBO);
//    }
//}
